package cn.wolfcode.wolf2w.query;


import cn.wolfcode.wolf2w.domain.Travel;
import lombok.Getter;
import lombok.Setter;

import java.sql.PreparedStatement;

@Setter
@Getter
public class TravelQuery extends QueryObject {
    private String destId;

    private int orderType = 1;  //默认最新排序

    private int perExpendType = -1;

    private int dayType = -1;

    public TravelCondition getDay() {
        return TravelCondition.DAY_MAP.get(dayType);
    }

    public TravelCondition getPerExpend() {
        return TravelCondition.PEREXPEND_MAP.get(perExpendType);
    }
}
